
import request from '@/utils/request';

// 查询列表
export async function queryKeyword(params) {
  return request('/b/datasensitivewords/queryPageList', {
    method: 'POST',
    data: params,
  });
}

// 新增
export async function addKeyword(params) {
  return request('/b/datasensitivewords/add', {
    method: 'POST',
    data: params,
  });
}

// 删除
export async function removeKeyword(params) {
  return request('/b/datasensitivewords/delete', {
    method: 'POST',
    data: params,
  });
}

// 批量删除
export async function removeAllKeyword(params) {
  return request('/b/datasensitivewords/removeAll', {
    method: 'POST',
    data: params,
  });
}

// 修改
export async function updateKeyword(params) {
  return request('/b/datasensitivewords/update', {
    method: 'POST',
    data: params,
  });
}
